<?php

namespace Omega\Core\Types {

    class String implements Generic {

        private $_string        = NULL;
        private $_validator   = NULL;
        private $_conversor = NULL;

        public function __construct($string=NULL) {

            $this->set($string);

        }

        public function set($string=NULL) {

            $this->_string = $string;

        }

        public function get() {

            return $this->_string;

        }

        public function length(){

            return strlen ($this->_string);
            
        }

        public function __toString(){

            return $this->get();
            
        }


        public function capitalize(){

            return ucwords($this->_string);

        }


        public function setValidator() {

        }

        public function toLower(){

            $this->_string = strtolower($this->_string);

        }

        public function toUpper(){

            $this->_string = strtoupper($this->_string);

        }

        /**
         *
         * @param <type> $conversor
         */

        public function setConversor($conversor=NULL) {

        }

        function validate() {

        }


    }
    
}

?>